﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using Quartz;

namespace EasyQuartz.Domain.Jobs
{
	public class EasyJob
	{
		public Guid Id { get; set; }
		public string Name { get; set; }
		public string Group { get; set; }
		public string Type { get; set; }
		public string CronExpression { get; set; }

		public override string ToString()
		{
			return string.Format("Group: {0}, Name: {1}, Type: {2}", Group, Name, Type);
		}

		public Type JobType
		{
			get
			{
				return System.Type.GetType(Type);
			}
		}
	}
}
